home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / acc_0110.arc / BATCH.BAT < prev    next >
DOS Batch File  |  1992-01-15  |  2KB  |  80 lines

  1. @ECHO OFF
  2. SHIFT
  3. MEM
  4.  
  5. REM This batchfile is called from ACCOUNT, when a remindment was writen.
  6. REM
  7. REM ACCOUNT gives the fallowed cmd-parameters to this batch:
  8. REM
  9. REM
  10. REM %0 Whitch remindment-class. (0-4)
  11. REM
  12. REM %1 Users first name.  (Spaces are replaced with a underscore "_")
  13. REM
  14. REM %2 Users second name. (Spaces are replaced with a underscore "_")
  15. REM
  16. REM %3 The fido address of the user.
  17. REM
  18. REM %4 The date when the last payment of the user normaly was payable.
  19. REM
  20. REM %5 The date, when the last payment of the user was received.
  21. REM
  22. REM %6 The amount of the users last payment.
  23. REM
  24. REM %7 The date, when the next payment will be due.
  25. REM
  26. REM %8 The cost for one month.
  27. REM
  28. REM %9 The actuall account of the user in days.
  29. REM
  30.  
  31. IF %0/==/ GOTO ERROR
  32. IF %0==0 GOTO RECEIPT
  33. IF %0==1 GOTO FIRST
  34. IF %0==2 GOTO SECOND
  35. IF %0==3 GOTO THIRD
  36. IF %0==4 GOTO FOURTH
  37. ECHO NOTHING
  38. GOTO ENDE
  39.  
  40.  
  41. :RECEIPT
  42. REM
  43. REM Insert the program, whitch you want to call with the needed parameters.
  44. REM
  45. GOTO ENDE
  46.  
  47. :FIRST
  48. REM
  49. REM Insert the program, whitch you want to call with the needed parameters.
  50. REM
  51. GOTO ENDE
  52.  
  53. :SECOND
  54. REM
  55. REM Insert the program, whitch you want to call with the needed parameters.
  56. REM
  57. GOTO ENDE
  58.  
  59. :THIRD
  60. REM
  61. REM Insert the program, whitch you want to call with the needed parameters.
  62. REM
  63. REM D:\DB\ACCOUNT\DISABLE %1 %2 %3
  64. GOTO ENDE
  65.  
  66. :FOURTH
  67. REM
  68. REM Insert the program, whitch you want to call with the needed parameters.
  69. REM
  70. REM D:\DB\ACCOUNT\KILLUSER %1 %2 %3
  71. GOTO ENDE
  72.  
  73.  
  74. :ERROR
  75. ECHO BATCH.BAT is called from ACCOUNT after writing of remindments autmatical.
  76. ECHO Dont use it manuel.
  77.  
  78. :ENDE
  79.  
  80.